Ext.define('DCApp.view.loper.Detail', {
extend: 'DCApp.view.Detail',
alias: 'widget.LOperdetail',

bind: {
title: '日志 - 【{theObj.id}】'
},

componentCls: 'loper-detail',
bodyPadding: 0,

controller: 'detail',
tbar: ['->',{
    text: '上一条',
    handler: 'onPrev',
    bind: {
        hidden: '{!showprev}'
    }
},{
    text: '下一条',
    handler: 'onNext',
    bind: {
        hidden: '{!shownext}'
    }
},{
    text: '返回',
    handler: 'onBackClick',
    bind: {
        hidden: '{!showreturn}'
    }
}],

afterRender: function(ct, position) {
this.callParent();
},
items: [{
title: 'Panel 0',
flex: 2,
frame: false,
xtype: 'container',
layout: 'anchor',
style: {
overflow: 'auto'
},

items: [
{
title : '详情',
margin : '0 0 10 0',
//cls : 'nav_pos',
reference : 'form',
bodyPadding : 10,
fieldDefaults : {
labelAlign : 'right',
labelWidth : 100,
padding : 3
},
defaults : {
anchor : '100%'
},
xtype: 'form',
items: [

{
	xtype: 'container',
	layout: 'hbox',
	defaultType: 'displayfield',
	items:[
{
	flex: 1,
	fieldLabel: '操作人id',
	bind: '{theObj.uid}'
	},	{
		flex: 1,
		renderer:function(v,fld){
			var om = {'A':'增加','R':'删除','U':'修改'};
			return om[v];
		},
		fieldLabel: '操作类型',
		bind: '{theObj.oper}'
		}]
},
{
	xtype: 'container',
	layout: 'hbox',
	defaultType: 'displayfield',
	items:[	{
		flex: 1,
		fieldLabel: '条目类名',
		bind: '{theObj.ename}'
		},	
	{
	flex: 1,
	fieldLabel: '条目id',
	bind: '{theObj.eid}'
	}]
},
{
	xtype: 'container',
	layout: 'hbox',
	defaultType: 'displayfield',
	items:[
	{
	flex: 1,
	fieldLabel: '操作人ip地址',
	bind: '{theObj.ipaddr}'
	},	{
		flex: 1,
		fieldLabel: '操作时间',
		renderer: Ext.util.Format.dateRenderer(Ext.Date.defaultFormat),
		bind: '{theObj.dtCreate}'
	}]
},
{
	xtype: 'container',
	layout: 'hbox',
	defaultType: 'textareafield',
	items:[
	   	{
	   		flex: 1,
	   		fieldLabel: '操作内容',
	   		bind: '{theObj.content}'
	   		}
	   ]
}]}]
 }]
});
